<script setup lang="ts">
import { useStore } from 'vuex'
import { key } from './store';

const store = useStore(key)
// todos 初始化
store.dispatch('todos/initTodo')
</script>

<template>
 
  <router-link to="/">Home</router-link>
  <router-link to="/add">Add</router-link>
  <router-view />
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  font-size: 20px;
}
</style>
